<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: lib/core/include/chi/NodeInstance.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('NodeInstance_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">NodeInstance.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="NodeInstance_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef CHI_NODE_INSTANCE_HPP</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define CHI_NODE_INSTANCE_HPP</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="core_2include_2chi_2Fwd_8hpp.html">chi/Fwd.hpp</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;boost/uuid/uuid.hpp&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;boost/uuid/uuid_generators.hpp&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;boost/uuid/uuid_io.hpp&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacechi.html">chi</a> {</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html">   19</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a> {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html#ac662b0ce416745792a336e9735c8b09d">NodeInstance</a>(<a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>* func, std::unique_ptr&lt;NodeType&gt; nodeType, <span class="keywordtype">float</span> posX, <span class="keywordtype">float</span> posY,</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;                 boost::uuids::uuid nodeID = boost::uuids::random_generator()());</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html#ac45c7fd7d21b6120deff63d92a05e24c">~NodeInstance</a>();</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html#ac662b0ce416745792a336e9735c8b09d">NodeInstance</a>(<a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="structchi_1_1NodeInstance.html#ac662b0ce416745792a336e9735c8b09d">NodeInstance</a>(<span class="keyword">const</span> <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; other,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                          boost::uuids::uuid  <span class="keywordtype">id</span> = boost::uuids::random_generator()());</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeInstance.html#a5e8c1bd26bd3fbba3a0f7191e7c7f594">setType</a>(std::unique_ptr&lt;NodeType&gt; newType);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a5d6678d5a90e6b1adb7dafb868b974b1">   46</a></span>&#160;    <a class="code" href="structchi_1_1NodeType.html">NodeType</a>&amp; <a class="code" href="structchi_1_1NodeInstance.html#a5d6678d5a90e6b1adb7dafb868b974b1">type</a>() { <span class="keywordflow">return</span> *mType; }</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a111d83fbe83a0008b03b1dda282ae930">   49</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="structchi_1_1NodeType.html">NodeType</a>&amp; <a class="code" href="structchi_1_1NodeInstance.html#a111d83fbe83a0008b03b1dda282ae930">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mType; }</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#ab5db13413db671fcc03fbc970c900068">   52</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structchi_1_1NodeInstance.html#ab5db13413db671fcc03fbc970c900068">x</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mX; }</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a601c0beb71056f80350bdc7d6dcdb565">   55</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structchi_1_1NodeInstance.html#a601c0beb71056f80350bdc7d6dcdb565">y</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mY; }</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a813bdf7162d9cc454b922639cbfe910b">   58</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeInstance.html#a813bdf7162d9cc454b922639cbfe910b">setX</a>(<span class="keywordtype">float</span> newX) { mX = newX; }</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a6895862ef7f3ed37fd746e692c16f9f3">   61</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeInstance.html#a6895862ef7f3ed37fd746e692c16f9f3">setY</a>(<span class="keywordtype">float</span> newY) { mY = newY; }</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#aa82e9350339e553aa56d2bac1d3a3834">   64</a></span>&#160;    boost::uuids::uuid <a class="code" href="structchi_1_1NodeInstance.html#aa82e9350339e553aa56d2bac1d3a3834">id</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mId; }</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a993d848a1b95077007e232d177f58308">   68</a></span>&#160;    std::string <a class="code" href="structchi_1_1NodeInstance.html#a993d848a1b95077007e232d177f58308">stringId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> boost::uuids::to_string(<span class="keywordtype">id</span>()); }</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">// connections</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">// TODO: better documentation here and OOify</span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a3b1a040d8cd223c288ce42aa85b9420f">   74</a></span>&#160;<span class="comment"></span>    std::vector&lt;std::vector&lt;std::pair&lt;NodeInstance*, size_t&gt;&gt;&gt; <a class="code" href="structchi_1_1NodeInstance.html#a3b1a040d8cd223c288ce42aa85b9420f">inputExecConnections</a>;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a88e73d3556afbb4dd72dd9de7900ad6b">   77</a></span>&#160;    std::vector&lt;std::pair&lt;NodeInstance*, size_t&gt;&gt; <a class="code" href="structchi_1_1NodeInstance.html#a88e73d3556afbb4dd72dd9de7900ad6b">inputDataConnections</a>;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#ae15567fb9911109701a9d221b58494db">   80</a></span>&#160;    std::vector&lt;std::pair&lt;NodeInstance*, size_t&gt;&gt; <a class="code" href="structchi_1_1NodeInstance.html#ae15567fb9911109701a9d221b58494db">outputExecConnections</a>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a7c07a36d22409a950ce18ab7eeae00f6">   83</a></span>&#160;    std::vector&lt;std::vector&lt;std::pair&lt;NodeInstance*, size_t&gt;&gt;&gt; <a class="code" href="structchi_1_1NodeInstance.html#a7c07a36d22409a950ce18ab7eeae00f6">outputDataConnections</a>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#ac2ada83d65425a80a4af74da5414fd75">   87</a></span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>&amp; <a class="code" href="structchi_1_1NodeInstance.html#ac2ada83d65425a80a4af74da5414fd75">context</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mContext; }</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a8f64930fd9578431a11cad0702b4100c">   91</a></span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>&amp; <span class="keyword">function</span>() <span class="keyword">const</span> { <span class="keywordflow">return</span> *mFunction; }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structchi_1_1NodeInstance.html#a72d113cfee45f4017adf28b034c6f215">   95</a></span>&#160;    <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>&amp; <a class="code" href="structchi_1_1NodeInstance.html#a72d113cfee45f4017adf28b034c6f215">module</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mGraphModule; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    std::unique_ptr&lt;NodeType&gt; mType;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">float</span> mX = 0.f;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordtype">float</span> mY = 0.0;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    boost::uuids::uuid mId;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>*       mContext;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="structchi_1_1GraphFunction.html">GraphFunction</a>* mFunction    = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <a class="code" href="structchi_1_1GraphModule.html">GraphModule</a>*   mGraphModule = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;};</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="namespacechi.html#ab69b013712d615bf9901d7bf2b0b11fb">connectData</a>(<a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; lhs, <span class="keywordtype">size_t</span> lhsConnID, <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; rhs, <span class="keywordtype">size_t</span> rhsConnID);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="namespacechi.html#a79423caa23a58e57b775c5137a03ee31">connectExec</a>(<a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; lhs, <span class="keywordtype">size_t</span> lhsConnID, <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; rhs, <span class="keywordtype">size_t</span> rhsConnID);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="namespacechi.html#a4694f9910cf90fd7c202fe117c4f257e">disconnectData</a>(<a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; lhs, <span class="keywordtype">size_t</span> lhsConnID, <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; rhs);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="namespacechi.html#a103b99abd766aa4d303a5004fe783c03">disconnectExec</a>(<a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>&amp; lhs, <span class="keywordtype">size_t</span> lhsConnID);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}  <span class="comment">// namespace chi</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#endif  // CHI_NODE_INSTANCE_HPP</span></div><div class="ttc" id="structchi_1_1NodeInstance_html_a3b1a040d8cd223c288ce42aa85b9420f"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a3b1a040d8cd223c288ce42aa85b9420f">chi::NodeInstance::inputExecConnections</a></div><div class="ttdeci">std::vector&lt; std::vector&lt; std::pair&lt; NodeInstance *, size_t &gt; &gt; &gt; inputExecConnections</div><div class="ttdoc">The connections that lead to this node, exec. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00074">NodeInstance.hpp:74</a></div></div>
<div class="ttc" id="structchi_1_1GraphFunction_html"><div class="ttname"><a href="structchi_1_1GraphFunction.html">chi::GraphFunction</a></div><div class="ttdoc">this is an AST-like representation of a function in a graph It is used for IDE-like behavior...</div><div class="ttdef"><b>Definition:</b> <a href="GraphFunction_8hpp_source.html#l00023">GraphFunction.hpp:23</a></div></div>
<div class="ttc" id="core_2include_2chi_2Fwd_8hpp_html"><div class="ttname"><a href="core_2include_2chi_2Fwd_8hpp.html">Fwd.hpp</a></div><div class="ttdoc">Forward declares all the chigraph data types. </div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a5e8c1bd26bd3fbba3a0f7191e7c7f594"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a5e8c1bd26bd3fbba3a0f7191e7c7f594">chi::NodeInstance::setType</a></div><div class="ttdeci">void setType(std::unique_ptr&lt; NodeType &gt; newType)</div><div class="ttdoc">Set the type of the node instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8cpp_source.html#l00056">NodeInstance.cpp:56</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a993d848a1b95077007e232d177f58308"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a993d848a1b95077007e232d177f58308">chi::NodeInstance::stringId</a></div><div class="ttdeci">std::string stringId() const</div><div class="ttdoc">Get the ID as a string. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00068">NodeInstance.hpp:68</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a7c07a36d22409a950ce18ab7eeae00f6"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a7c07a36d22409a950ce18ab7eeae00f6">chi::NodeInstance::outputDataConnections</a></div><div class="ttdeci">std::vector&lt; std::vector&lt; std::pair&lt; NodeInstance *, size_t &gt; &gt; &gt; outputDataConnections</div><div class="ttdoc">The connections that lead out of this node, data. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00083">NodeInstance.hpp:83</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a5d6678d5a90e6b1adb7dafb868b974b1"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a5d6678d5a90e6b1adb7dafb868b974b1">chi::NodeInstance::type</a></div><div class="ttdeci">NodeType &amp; type()</div><div class="ttdoc">Get the type of the instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00046">NodeInstance.hpp:46</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html"><div class="ttname"><a href="structchi_1_1NodeInstance.html">chi::NodeInstance</a></div><div class="ttdoc">An instance of a node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00019">NodeInstance.hpp:19</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a88e73d3556afbb4dd72dd9de7900ad6b"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a88e73d3556afbb4dd72dd9de7900ad6b">chi::NodeInstance::inputDataConnections</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; NodeInstance *, size_t &gt; &gt; inputDataConnections</div><div class="ttdoc">The connections that go into this node, data. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00077">NodeInstance.hpp:77</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a72d113cfee45f4017adf28b034c6f215"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a72d113cfee45f4017adf28b034c6f215">chi::NodeInstance::module</a></div><div class="ttdeci">GraphModule &amp; module() const</div><div class="ttdoc">Get the containing GraphModule. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00095">NodeInstance.hpp:95</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_ac662b0ce416745792a336e9735c8b09d"><div class="ttname"><a href="structchi_1_1NodeInstance.html#ac662b0ce416745792a336e9735c8b09d">chi::NodeInstance::NodeInstance</a></div><div class="ttdeci">NodeInstance(GraphFunction *func, std::unique_ptr&lt; NodeType &gt; nodeType, float posX, float posY, boost::uuids::uuid nodeID=boost::uuids::random_generator()())</div><div class="ttdoc">Construct a nodeinstace with a type location and an ID, usually called from GraphFunction::insertNode...</div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8cpp_source.html#l00014">NodeInstance.cpp:14</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html"><div class="ttname"><a href="structchi_1_1NodeType.html">chi::NodeType</a></div><div class="ttdoc">A generic node type. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00019">NodeType.hpp:19</a></div></div>
<div class="ttc" id="structchi_1_1Context_html"><div class="ttname"><a href="structchi_1_1Context.html">chi::Context</a></div><div class="ttdoc">The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...</div><div class="ttdef"><b>Definition:</b> <a href="Context_8hpp_source.html#l00055">Context.hpp:55</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a6895862ef7f3ed37fd746e692c16f9f3"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a6895862ef7f3ed37fd746e692c16f9f3">chi::NodeInstance::setY</a></div><div class="ttdeci">void setY(float newY)</div><div class="ttdoc">Set the Y location of the instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00061">NodeInstance.hpp:61</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_ac45c7fd7d21b6120deff63d92a05e24c"><div class="ttname"><a href="structchi_1_1NodeInstance.html#ac45c7fd7d21b6120deff63d92a05e24c">chi::NodeInstance::~NodeInstance</a></div><div class="ttdeci">~NodeInstance()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="namespacechi_html_a4694f9910cf90fd7c202fe117c4f257e"><div class="ttname"><a href="namespacechi.html#a4694f9910cf90fd7c202fe117c4f257e">chi::disconnectData</a></div><div class="ttdeci">Result disconnectData(NodeInstance &amp;lhs, size_t lhsConnID, NodeInstance &amp;rhs)</div><div class="ttdoc">Disconnect a data connection. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8cpp_source.html#l00229">NodeInstance.cpp:229</a></div></div>
<div class="ttc" id="namespacechi_html_ab69b013712d615bf9901d7bf2b0b11fb"><div class="ttname"><a href="namespacechi.html#ab69b013712d615bf9901d7bf2b0b11fb">chi::connectData</a></div><div class="ttdeci">Result connectData(NodeInstance &amp;lhs, size_t lhsConnID, NodeInstance &amp;rhs, size_t rhsConnID)</div><div class="ttdoc">Connects two nodes&amp;#39; data connections. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8cpp_source.html#l00128">NodeInstance.cpp:128</a></div></div>
<div class="ttc" id="namespacechi_html_a79423caa23a58e57b775c5137a03ee31"><div class="ttname"><a href="namespacechi.html#a79423caa23a58e57b775c5137a03ee31">chi::connectExec</a></div><div class="ttdeci">Result connectExec(NodeInstance &amp;lhs, size_t lhsConnID, NodeInstance &amp;rhs, size_t rhsConnID)</div><div class="ttdoc">Connects two nodes&amp;#39; exec connections. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8cpp_source.html#l00186">NodeInstance.cpp:186</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_ae15567fb9911109701a9d221b58494db"><div class="ttname"><a href="structchi_1_1NodeInstance.html#ae15567fb9911109701a9d221b58494db">chi::NodeInstance::outputExecConnections</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; NodeInstance *, size_t &gt; &gt; outputExecConnections</div><div class="ttdoc">The connections that go out of this node, exec. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00080">NodeInstance.hpp:80</a></div></div>
<div class="ttc" id="structchi_1_1GraphModule_html"><div class="ttname"><a href="structchi_1_1GraphModule.html">chi::GraphModule</a></div><div class="ttdoc">Module that holds graph functions. </div><div class="ttdef"><b>Definition:</b> <a href="GraphModule_8hpp_source.html#l00016">GraphModule.hpp:16</a></div></div>
<div class="ttc" id="namespacechi_html_a103b99abd766aa4d303a5004fe783c03"><div class="ttname"><a href="namespacechi.html#a103b99abd766aa4d303a5004fe783c03">chi::disconnectExec</a></div><div class="ttdeci">Result disconnectExec(NodeInstance &amp;lhs, size_t lhsConnID)</div><div class="ttdoc">Disconnect a exec connection. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8cpp_source.html#l00294">NodeInstance.cpp:294</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_ab5db13413db671fcc03fbc970c900068"><div class="ttname"><a href="structchi_1_1NodeInstance.html#ab5db13413db671fcc03fbc970c900068">chi::NodeInstance::x</a></div><div class="ttdeci">float x() const</div><div class="ttdoc">Get the X location of the instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00052">NodeInstance.hpp:52</a></div></div>
<div class="ttc" id="namespacechi_html"><div class="ttname"><a href="namespacechi.html">chi</a></div><div class="ttdoc">The namespace where chigraph lives. </div><div class="ttdef"><b>Definition:</b> <a href="BitcodeParser_8hpp_source.html#l00012">BitcodeParser.hpp:12</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_ac2ada83d65425a80a4af74da5414fd75"><div class="ttname"><a href="structchi_1_1NodeInstance.html#ac2ada83d65425a80a4af74da5414fd75">chi::NodeInstance::context</a></div><div class="ttdeci">Context &amp; context() const</div><div class="ttdoc">Get the containing Context object. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00087">NodeInstance.hpp:87</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a111d83fbe83a0008b03b1dda282ae930"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a111d83fbe83a0008b03b1dda282ae930">chi::NodeInstance::type</a></div><div class="ttdeci">const NodeType &amp; type() const</div><div class="ttdoc">Get the type of the instance, const version. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00049">NodeInstance.hpp:49</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_aa82e9350339e553aa56d2bac1d3a3834"><div class="ttname"><a href="structchi_1_1NodeInstance.html#aa82e9350339e553aa56d2bac1d3a3834">chi::NodeInstance::id</a></div><div class="ttdeci">boost::uuids::uuid id() const</div><div class="ttdoc">Get the ID of the instance, unique to the graph. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00064">NodeInstance.hpp:64</a></div></div>
<div class="ttc" id="structchi_1_1Result_html"><div class="ttname"><a href="structchi_1_1Result.html">chi::Result</a></div><div class="ttdoc">The result object, used for identifiying errors with good diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00072">Result.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a813bdf7162d9cc454b922639cbfe910b"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a813bdf7162d9cc454b922639cbfe910b">chi::NodeInstance::setX</a></div><div class="ttdeci">void setX(float newX)</div><div class="ttdoc">Set the X location of the instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00058">NodeInstance.hpp:58</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html_a601c0beb71056f80350bdc7d6dcdb565"><div class="ttname"><a href="structchi_1_1NodeInstance.html#a601c0beb71056f80350bdc7d6dcdb565">chi::NodeInstance::y</a></div><div class="ttdeci">float y() const</div><div class="ttdoc">Get the Y location of the instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00055">NodeInstance.hpp:55</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_a2d5e495f4b604d04f57d90095a59dd6.html">core</a></li><li class="navelem"><a class="el" href="dir_a979adfa99d5a8626731f83d5067598b.html">include</a></li><li class="navelem"><a class="el" href="dir_afbc2aa4d9616322ddf4041ba4f8ade6.html">chi</a></li><li class="navelem"><a class="el" href="NodeInstance_8hpp.html">NodeInstance.hpp</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
